package com.chen.paymentdemo.controller;

import com.chen.paymentdemo.config.WxPayConfig;
import com.chen.paymentdemo.vo.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Y·C
 * @version 1.0.0
 * @ClassName TestController.java
 * @Description TODO
 * @createTime 2023年07月19日 22:14:00
 */
@Api(tags = "测试控制器")
@RestController
@RequestMapping("api/test")
public class TestController {

    @Resource
    private WxPayConfig wxPayConfig;

    @GetMapping
    public R getWxPayConfig() {
        return R.ok().data("wxPayConfig", wxPayConfig.getMchId());
    }


}
